namespace FileCollection
{
    using System.Collections.Generic;
    using System.IO;

    internal class CompareFileInfoByName : IComparer<FileInfo>
    {
        public int Compare(FileInfo x, FileInfo y)
        {
            return string.Compare(x.Name, y.Name);
        }
    }
}